<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>编辑景点</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  <style>
    @media screen and (min-width: 490px) {
      .layui-form-item .layui-input-inline {
        width: 70%;
      }
    }
  </style>
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;">
  <input type="hidden" name="vId" value="${view.vId}">
  <div class="layui-form-item">
    <label class="layui-form-label">景点名</label>
    <div class="layui-input-inline">
      <input type="text" name="vName" value="${view.vName}" lay-verify="required" placeholder="请输入景点名" maxlength="20" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">关联学校</label>
    <div class="layui-input-inline">
      <select name="vSid" lay-search lay-verify="required">
        <option value="">请选择学校，支持搜索</option>
        #for( sch : cSchoolList)
        <option value="${sch.sId}" ${view.vSid==sch.sId?"selected":""}>${sch.sName}</option>
        #end
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">分类</label>
    <div class="layui-input-inline">
      <select name="vFlag" lay-verify="required">
        <option value="">请选择分类</option>
        <option value="0" ${view.vFlag==0?"selected":""}>校内景点</option>
        <option value="1" ${view.vFlag==1?"selected":""}>名胜古迹</option>
        <option value="2" ${view.vFlag==2?"selected":""}>城市公园</option>
        <option value="3" ${view.vFlag==3?"selected":""}>游山玩水</option>
        <option value="4" ${view.vFlag==4?"selected":""}>酒店住宿</option>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">热度</label>
    <div class="layui-input-inline">
      <input type="text" name="vHot" value="${view.vHot}" lay-verify="required|number" placeholder="请输入热度值" maxlength="5" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">景点描述</label>
    <div class="layui-input-inline">
      <textarea type="text" name="vDescribe" lay-verify="required" style="height: 100px;padding: 8px;" placeholder="请输入景点描述" autocomplete="off" class="layui-input">${view.vDescribe}</textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">地理位置</label>
    <div class="layui-input-inline">
      <input type="text" name="vPosition" value="${view.vPosition}" lay-verify="required" placeholder="请输入景点位置" maxlength="50" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">景点特色</label>
    <div class="layui-input-inline">
      <textarea type="text" name="vSpecial" lay-verify="required" style="height: 100px;padding: 8px;" maxlength="255" placeholder="请输入景点特色" autocomplete="off" class="layui-input">${view.vSpecial}</textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">路线定制</label>
    <div class="layui-input-inline">
      <textarea type="text" name="vRoute" lay-verify="required" style="height: 100px;padding: 8px;" maxlength="255" placeholder="请输入路线定制" autocomplete="off" class="layui-input">${view.vRoute}</textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">景点攻略</label>
    <div class="layui-input-inline">
      <textarea type="text" name="vStrategy" lay-verify="required" style="height: 100px;padding: 8px;" maxlength="255" placeholder="请输入景点攻略" autocomplete="off" class="layui-input">${view.vStrategy}</textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">饮食住行</label>
    <div class="layui-input-inline">
      <textarea type="text" name="vEat" lay-verify="required" style="height: 100px;padding: 8px;" maxlength="255" placeholder="请输入饮食住行" autocomplete="off" class="layui-input">${view.vEat}</textarea>
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-front-submit" id="LAY-front-submit" value="确认">
  </div>
</div>

<script src="/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'upload'], function(){
        var $ = layui.$
            ,form = layui.form
            ,upload = layui.upload ;
    })
</script>
</body>
</html>